import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)
let title = '云玺印章管控平台--'
export default new Router({
	routes: [

		{
			path: '/',
			name: '首页',
			meta: {
				key: 2,
				title: '首页',
				networkTitle: title + '首页',
			},
			redirect: {
				name: 'equipment'
			},
			component: () => import('@/views/home/index'),
			children: [{
				path: '/equipment',
				name: 'equipment',
				meta: {
					key: 2,
					title: '设备',
					networkTitle: title + '设备',
				},
				component: () => import('@/views/home/equipment/equipment')
			},{
				path: '/user',
				name: 'user',
				meta: {
					key: 2,
					title: '用户',
					networkTitle: title + '用户',
				},
				component: () => import('@/views/home/user/user')
			},{
				path: '/setUp',
				name: 'setUp',
				meta: {
					key: 2,
					title: '设置',
					networkTitle: title + '设置',
				},
				component: () => import('@/views/home/setUp/setUp')
			}]
		},
		
		{
			path: '/login',
			name: 'login',
			meta: {
				key: 1,
				networkTitle: title + '登录',
				title: '登录',
			},
			component: () => import('@/views/login/index')
		},
		{
			path: '/regist',
			name: 'regist',
			meta: {
				key: 1,
				title: '注册',
				networkTitle: title + '注册',
			},
			component: () => import('@/views/regist/regist')
		}
	]
})
